﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Gedea.Model.Entities
{
    public class Area
    {
        public int AreaId { get; set; }

        [Required(AllowEmptyStrings = false, ErrorMessage = "The name for the bank is required")]
        [StringLength(100, ErrorMessage = "The name for the bank must have less than 100 characters")]
        public string Name { get; set; }
        
        // Referencia univoca del debito (15)
        [Required(AllowEmptyStrings = false, ErrorMessage = "The DebitUnivocalReference is required")]
        [StringLength(15, ErrorMessage = "The DebitUnivocalReference must have 15 characters")] //IML
        public string DebitUnivocalReference { get; set; }

        [Required(AllowEmptyStrings = false, ErrorMessage = "The user is required")]
        public int UserId { get; set; }
    }
}
